class Solution:
    def splitWordsBySeparator(self, words: List[str], separator: str) -> List[str]:
        result = []
        for word in words:
            swords = word.split(separator)
            for sword in swords:
                if sword:
                    result.append(sword)

        return result
